﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace CalendarApplication
{
    static class Program
    {
        /// <summary>
        /// 
        /// 
        /// 
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //build string
            SqlConnectionStringBuilder csb = new SqlConnectionStringBuilder(Properties.Settings.Default.DBConnection.ToString());
            //get connection string via utilities
            //TODO Will this change outside of "development" phase?
            Utilities.DBConnection = csb.ToString();
            Application.Run(new frmLogin());

        }
    }
}
